/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tcloudclient.actionManager;

import api.action.ActionTypeEnum;
import api.action.crates.Client.NewUpdateFolderCrate;

/**
 *
 * @author Tomas
 */
public class UpdateFolderActionExecutor implements ExecuteActionInterface<NewUpdateFolderCrate> {

    @Override
    public void execute(NewUpdateFolderCrate actionData, FireActionExecuteInterface event) {
        event.actionExecuted(actionData.getPath(), actionData.getVersion(), ActionTypeClientEnum.UPDATE);
        //throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public boolean isSupported(ActionTypeEnum actionType) {
        return actionType == ActionTypeEnum.UPDATE_FOLDER;
    }
    
}
